package mx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import mx.dao.TicketOrderDao;
import mx.entity.Ticket;
import mx.entity.TicketOrder;
import mx.service.TicketOrderService;

/**
 * 票订单service实现
 * 
 * @author root
 *
 */
@Service("ticketOrderService")
public class TicketOrderServiceImpi implements TicketOrderService {
	@Resource
	private TicketOrderDao ticketOrderDao;

	public List<TicketOrder> list(Map<String, Object> map) {
		return ticketOrderDao.list(map);
	}

	public Long getTotal(Map<String, Object> map) {
		return ticketOrderDao.getTotal(map);
	}

	public Integer update(TicketOrder ticketOrder) {
		return ticketOrderDao.update(ticketOrder);
	}

	public Integer add(TicketOrder ticketOrder) {
		return ticketOrderDao.add(ticketOrder);
	}

}
